<br />
<?php foreach ($data['unit'] as $u) {?>
<fieldset>
	<legend><input type="checkbox" class="check_all"/><?php echo $u['unit'];?></a></legend>	
	<ul>
		<?php foreach ($u['domain'] as $d) {?>
		<li><input type="checkbox" name="domain[]" class="domain" value="<?php echo $d[0]['id']; ?>"/><?php echo $d[0]['domain'];?></li>
		<?php } ?>
	</ul>
</fieldset>	
<?php } ?>
